@extends('admin.layouts.index')
@section('title', '小程序备案结果')

@section('content')
<div class="row">
    <div class="col-xl-12">
        <div class="card">
            <div class="card-body">
                <div class="qrcode-audit-result">
                    @if($status == "success")
                    @if($icpEntranceInfo["status"] == 2)
                    <i class="icon bx bxs-info-circle text-warning"></i>
                    <div class="header">微信初审中</div>
                    <div class="describe">您的备案申请正在微信初审中,请管理员注意接听初审电话。</div>
                    @elseif($icpEntranceInfo["status"] == 3)
                    <i class="icon bx bxs-info-circle text-danger"></i>
                    <div class="header">微信初审失败</div>
                    <div class="describe">{{ $icpEntranceInfo["audit_data"][0]["error"] }}(修改建议:{{ $icpEntranceInfo["audit_data"][0]["suggest"] }})</div>
                    <div class="links">
                        <a href="/admin/miniapp/miniapp_beian/{{ $appid }}?status=1">前往重新提交备案</a>
                    </div>
                    @elseif($icpEntranceInfo["status"] == 4)
                    <i class="icon bx bxs-time-five text-warning"></i>
                    <div class="header">管局审核中</div>
                    <div class="describe">您的备案申请正在管局审核中,请注意查收手机短信完成短信认证。</div>
                    @elseif($icpEntranceInfo["status"] == 5)
                    <i class="icon bx bxs-info-circle text-danger"></i>
                    <div class="header">管局审核失败</div>
                    <div class="describe">{{ $icpEntranceInfo["audit_data"][0]["error"] }}(修改建议:{{ $icpEntranceInfo["audit_data"][0]["suggest"] }})</div>
                    <div class="links">
                        <a href="/admin/miniapp/miniapp_beian/{{ $appid }}?status=1">前往重新提交备案</a>
                    </div>
                    @elseif($icpEntranceInfo["status"] == 6)
                    <i class="icon bx bxs-info-circle text-warning"></i>
                    <div class="header">备案审核通过</div>
                    <div class="describe">您的小程序备案审核已通过，您可以正常发布微信小程序。</div>
                    @elseif($icpEntranceInfo["status"] == 1024)
                    <i class="icon bx bxs-info-circle text-warning"></i>
                    <div class="header">未提交小程序备案</div>
                    <div class="describe">您当前暂未提交小程序备案,请前往提交小程序备案!</div>
                    <div class="links">
                        <a href="/admin/miniapp/miniapp_beian/{{ $appid }}?status=1">前往提交备案</a>
                    </div>
                    @elseif($icpEntranceInfo["status"] == 1025)
                    <i class="icon bx bxs-info-circle text-warning"></i>
                    <div class="header">未提交小程序备案</div>
                    <div class="describe">未备案 && 小程序基本信息未填!</div>
                    <div class="links">
                        <a href="/admin/miniapp/miniapp_beian/{{ $appid }}?status=1">前往提交备案</a>
                    </div>
                    @elseif($icpEntranceInfo["status"] == 1026)
                    <i class="icon bx bxs-info-circle text-warning"></i>
                    <div class="header">未提交小程序备案</div>
                    <div class="describe">未备案 && 小程序类目未填</div>
                    <div class="links">
                        <a href="/admin/miniapp/miniapp_beian/{{ $appid }}?status=1">前往提交备案</a>
                    </div>
                    @elseif($icpEntranceInfo["status"] == 1027)
                    <i class="icon bx bxs-info-circle text-warning"></i>
                    <div class="header">未提交小程序备案</div>
                    <div class="describe">未备案 8& 小程序基本信息未填 8& 小程序类目未填</div>
                    <div class="links">
                        <a href="/admin/miniapp/miniapp_beian/{{ $appid }}?status=1">前往提交备案</a>
                    </div>
                    @else
                    <i class="icon bx bx-x-circle text-danger"></i>
                    <div class="header">其他类型</div>
                    <div class="describe">备案出现其他异常,请稍后尝试!</div>
                    @endif
                    @else
                    <i class="icon bx bx-x-circle text-danger"></i>
                    <div class="header">访问失败</div>
                    <div class="describe">{{ $message }}</div>
                    @endif
                </div>
            </div>
        </div>
    </div>
</div>
<style type="text/css">
    /*audit start*/
.qrcode-audit-result{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}
.qrcode-audit-result .icon{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    font-size: 60px;
    align-items: center;
    margin: 15px 0 10px;
}
.qrcode-audit-result .header{
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 18px;
    color: #000000;
}
.qrcode-audit-result .describe{
    width: 100%;
    height: auto;
    line-height: 25px;
    text-align: center;
}
.qrcode-audit-result .links{
    width: 100%;
    height: 50px;
    text-align: center;
    margin-top: 15px;
}
.qrcode-audit-result .links a{
    width: auto;
    height: 50px;
    line-height: 50px;
    background-color: #556ee6;
    color: #FFFFFF;
    padding: 8px 15px;
    font-size: 14px;
    margin: 0 5px;
}
/*audit end*/
</style>
@endsection
